/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */
package com.artic.ogre.handler;

import com.artic.ogre.model.Scene;
import com.jme3.asset.AssetManager;
import com.jme3.scene.Node;

/**
 *
 * @author czarnik_a
 */
public class ExternalsHandler implements ISceneHandler {

    private ISceneHandler nextHandler;
    private AssetManager assetManager;
    private Scene scene;
    private Node node;
    
    public void setNext(ISceneHandler handler) {
        nextHandler = handler;
    }

    public void handleScene(Scene scene, Node node, AssetManager assetManager) {
        this.assetManager = assetManager;
        this.scene = scene;
        this.node = node;
        if(nextHandler != null) nextHandler.handleScene(scene, node, assetManager);
    }
}
